package fhp.hlhj.giantfold.adapter
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
import android.view.ViewGroup

/**
 * author: FHP
 * data: on 2018\1\5 0005 16:08
 * E-Mail: 103945089@qq.com
 */
class MyFansFgmAdp(fm:FragmentManager,private val fgms: List<Fragment>):FragmentPagerAdapter(fm) {

    override fun getItem(position: Int): Fragment {
        return fgms[position]
    }
    override fun getCount(): Int {
        return fgms.size
    }

    override fun destroyItem(container: ViewGroup?, position: Int, `object`: Any?) {
//        super.destroyItem(container, position, `object`)
    }
}